package cac.fenjian.resource.system.controller;

import cac.fenjian.resource.system.service.SystemRoadService;
import com.cac.dme.adapter.rest.msg.ResponseMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@RestController
@RequestMapping("systemRoadController")
public class SystemRoadController {
    @Autowired
    private SystemRoadService systemRoadService;

    @PostMapping("queryRoad")
    public List<HashMap> queryRoad(){
        return systemRoadService.queryRoad();
    }
    @PostMapping("updateRoadStatus")
    public ResponseMsg updateRoadStatus(@RequestBody HashMap map){
        return systemRoadService.updateRoadStatus(map);
    }
}
